package popcorn.ticket.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import popcorn.ticket.dao.CountryMapper;
import popcorn.ticket.entity.Country;

@RestController
public class CountryController {
	@Autowired
	CountryMapper cm;
	
	@RequestMapping("Country")
	public List<Country> getAllCountry(){
		return cm.getAllCountry();
	}
	
}
